package me.zhengjie.modules.fund.service.dto;

import lombok.Getter;
import lombok.Setter;
import me.zhengjie.base.BaseDTO;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
public class UserStockDto extends BaseDTO implements Serializable {

    private static final long serialVersionUID = -3101166226334695559L;

    /**
     * id
     */
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 股票代码
     */
    private String stockCode;

    /**
     * 股票名称
     */
    private String stockName;

    /**
     * 购买渠道 1：中信建投 2 华泰证券
     */
    private Integer purchaseChannel;

    /**
     * 持有份额
     */
    private BigDecimal count;

    /**
     * 股票成本
     */
    private BigDecimal principalNetValue;

    /**
     * 成本金额
     */
    private BigDecimal principalAmount;

    /**
     * 最新净值
     */
    private BigDecimal newestNetValue;

    /**
     * 持仓金额（以最新净值计算)
     */
    private BigDecimal newestAmount;

    /**
     * 最新净值更新时间
     */
    private Date newestUpdatedDate;

    /**
     * 当前利润金额
     */
    private BigDecimal profitAmount;

    /**
     * 当前利润比率
     */
    private Double profitRate;
}
